package cn.thr.pethome.user.mapper;

import cn.thr.pethome.base.mapper.BaseMapper;
import cn.thr.pethome.logininfo.domain.Logininfo;
import cn.thr.pethome.user.query.EmployeeQuery;
import cn.thr.pethome.user.domain.Employee;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeMapper extends BaseMapper<Employee>{
    Employee getEmpByShopId(Long id);
    //用来查询Loginfo 的id的 查询Loginfo
    Employee findByLogininfoId(Long id);

    //根据 Employee 这张表的id去查询 role 角色这张表
    List<Long> findRoleByEmpId(Long id);
}
